﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using JXT.PrimaryKey.Batman.Core.WcfService;

namespace JXT.PrimaryKey.Batman.Core.Security
{
    /// <summary>
    /// 用户状态数据
    /// </summary>
    [DataContract(Namespace = ServiceEnvironment.ModelNamespace)]
    public class UserStatus
    {
        /// <summary>
        /// 登录次数
        /// </summary>
        [DataMember]
        public int LoginNum { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        [DataMember]
        public DateTime RegisterTime { get; set; }

        /// <summary>
        /// 注册IP
        /// </summary>
        [DataMember]
        public string RegisterIp { get; set; }

        /// <summary>
        /// 最后登陆时间
        /// </summary>
        [DataMember]
        public DateTime LastLoginTime { get; set; }

        /// <summary>
        /// 最后登录IP
        /// </summary>
        [DataMember]
        public string LastLoginIp { get; set; }
    }
}
